<template>
  <div class="list-case">
    <div class="title">案例展示</div>
    <div class="content">
      <template v-for="item in list" :key="item">
        <div class="case-box">
          <img src="@/assets/images/service/case/camera@2x.png" alt="" />
          <span class="product-name"> 松下投影仪 </span>
        </div>
      </template>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const list = ref([1, 2, 3, 4, 5, 6, 7, 8])
</script>

<style scoped lang="scss">
.list-case .title {
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  color: #000000;
  margin: 80px 0 40px 0;
}

.list-case .content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px 20px;
  margin-bottom: 100px;
}

.list-case .content .case-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-case .content .case-box img {
  width: 72px;
  margin-right: 14px;
}

.list-case .content .case-box .product-name {
  font-size: 22px;
  font-weight: 400;
}

@media screen and (max-width: 780px) {
  .list-case .content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 10px;
  }
  .list-case .content .case-box {
    flex-direction: column;
  }
  .list-case .content .case-box img {
    margin-right: 0;
  }
  .list-case .content .case-box .product-name {
    font-size: 18px;
  }
}
</style>
